﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Topshelf;
using WMSSyncData.Core;

namespace WMSSyncRMData.ToERP
{
    class Program
    {
        static void Main(string[] args)
        {
            log4net.Config.XmlConfigurator.ConfigureAndWatch(new FileInfo(AppDomain.CurrentDomain.BaseDirectory + "log4net.config"));
            HostFactory.Run(x =>
            {
                x.UseLog4Net();

                x.Service<ServiceRunner>();
                x.SetDescription("WMS系统数据同步WMSSRToERP");
                x.SetDisplayName("WMSSyncRMToERPData");
                x.SetServiceName("WMSSyncRMToERPData");
                x.EnablePauseAndContinue();
            });
            //new WMSSyncRMToERP().InStockFBSYnc();
            //new WMSSyncRMToERP().InStockPRSync();
            //new WMSSyncRMToERP().OutStockPOMSync();
            //new WMSSyncRMToERP().PBackSync();

            //new WMSSyncRMToERP().TransferSync();

            //new WMSSyncRMToERP().InStockSync();

        }
    }
}
